package com.easybuilder.core.table.dao;

import com.easybuilder.common.base.dao.BaseDao;
import com.easybuilder.core.table.entity.SysTableInfo;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.ExampleMapper;

@Repository
public interface TableInfoDao extends BaseDao<SysTableInfo> , ExampleMapper<SysTableInfo> {

    /** 同步指定tableId下字段名的旧名称 */
    @Update("update sys_table_info set column_name_old = column_name where table_id = #{id} ")
    void synchColumnOldName(Long id);
}
